package com.fymxy.question_bank_management.service.serviceImpl;

import com.fymxy.question_bank_management.mapper.ManagerMapper;
import com.fymxy.question_bank_management.pojo.Manager;
import com.fymxy.question_bank_management.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ManagerServiceImpl implements ManagerService {

    @Autowired
    ManagerMapper managerMapper;

    @Override
    public Manager managerLogin(String username, String password){
        Manager manager = managerMapper.managerLogin(username,password);
//        if(manager == null){
//            System.out.println("no manager");
//        }
        return manager;
    }


    @Override
    public int update(int No, String name) {
        return this.managerMapper.update(No,name);
    }
}
